   <!--
      This file is licensed under the MIT License (MIT) available on
      http://opensource.org/licenses/MIT.
   -->
<lottie-player id="animation-fairy" src="/json/fairy.json"></lottie-player>
  <script>
    const animFairy = document.querySelector('#animation-fairy');
    animFairy.addEventListener('click', playFairyAnimation);
    animFairy.addEventListener('complete', stopFairyAnimation);

    function stopFairyAnimation() {
      animFairy.stop();
    }

    function playFairyAnimation() {
      animFairy.play(animFairy.firstFrame);
    }
  </script>
